/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.program1.program1.impl;
import za.ac.cput.program1.program1.program1;
/**
 *
 * @author Dwayne
 */
public class program1Impl implements program1
{
    @Override
    public String welcomeMessage() 
    {
       return "Welcome";
    }

    @Override
    public int add(int a, int b) 
    {
        return a+b;
    }

    @Override
    public int subtract(int a, int b)
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public int divide(int a, int b) 
    {
        return a/b;
    }

    @Override
    public int multiply(int a, int b)
    {
        int sum = 0;
        
        for (int i = 0; i < b; i++)
        {
            sum = sum+a; 
        }
        return sum;
    }

    @Override
    public int run() 
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
